import { request } from '../utils/http';
import common from '../utils/common';

// 登录
const login = (params) => request(params, 'app/getWxComp');

// 获取验证码
const getMsg = (params) => request(params, 'app/getMsg');

// 用户简历
const getResume = (params) => request(params, 'app/resume');

// 获取企业信息
const getCompInfo = () => request({data: {compId: common.getCompId()}, loading: false}, 'app/comp');

// 查看备注
const getRemark = (params) => request(params, 'app/remark');

// 关注取消关注
const liveUnLive = (params) => request(params, 'app/concernResume');

// 根据简历id查询电话
const remarkPhone = (params) => request(params, 'app/remarkPhone');

// 更新面试状态
const remarkUpdate = (params) => request(params, 'app/remarkUpdate');

// 导航
const navigation = (params) => request(params, 'app/navigationResume');

export default {
  login,
  getMsg,
  getResume,
  getCompInfo,
  getRemark,
  liveUnLive,
  remarkPhone,
  remarkUpdate,
  navigation
}
